﻿<%@ Page Title="" Language="C#" MasterPageFile="~/main2.master" AutoEventWireup="true" CodeFile="publish.aspx.cs" Inherits="publish" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

    <link href="css/publish.css" rel="stylesheet" type="text/css" />
    <script src="js/Calendar1.js" type="text/javascript"></script>
    <script src="js/ModifyPCenter.js" type="text/javascript"></script>
    <script type="text/javascript">
        function PubClear() {
            document.getElementById("<%=txtGsName.ClientID %>").value = "";
            document.getElementById("<%=txtaGsAttr.ClientID %>").value = "";
            document.getElementById("<%=txtAddress.ClientID %>").value = "";
            document.getElementById("<%=txtTime.ClientID %>").value = "";
            document.getElementById("<%=FUImg.ClientID %>").value = "";
        }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<center>
<table width="450px" align="center" id="tbPublish">
<tr>
<td>信息类型</td>
<td><input type="radio" id="rdTypeF" checked runat="server"/>寻物启事&nbsp;&nbsp;<input type="radio" id="rdtype" runat="server"/>招领启事</td>
</tr>

<tr>
<td>物品名称</td>
<td><input type="text" id="txtGsName" style="width:230px"  runat="server" class="input1" onfocus="change(this)" onblur="change2(this)"/><asp:RequiredFieldValidator
        ID="RequiredFieldValidator1" runat="server" ErrorMessage="*" 
        ControlToValidate="txtGsName" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator></td>
</tr>

<tr>
<td>物品特征</td>
<td><textarea id="txtaGsAttr" style="width:230px" cols="30" rows="8" runat="server" class="input1" onfocus="change(this)" onblur="change2(this)"></textarea><asp:RequiredFieldValidator
        ID="RequiredFieldValidator2" runat="server" ErrorMessage="*"
        ControlToValidate="txtaGsAttr" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator></td>
</tr>

<tr>
<td>物品遗失(或捡取)地点</td>
<td><input type="text" id="txtAddress" style="width:230px" runat="server" class="input1" onfocus="change(this)" onblur="change2(this)"/><asp:RequiredFieldValidator
        ID="RequiredFieldValidator3" runat="server" ErrorMessage="*"
        ControlToValidate="txtAddress" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator></td>
</tr>

<tr>
<td>时间</td>
<td><input type="text" id="txtTime" style="width:230px" runat="server" class="input1" onfocus="change(this);calendar()" onblur="change2(this)"/><asp:RequiredFieldValidator
        ID="RequiredFieldValidator4" runat="server" ErrorMessage="*"
        ControlToValidate="txtTime" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator></td>
</tr>

<tr>
<td>图片</td>
<td>
    <asp:FileUpload ID="FUImg" Width="230px" runat="server" class="input1" onfocus="change(this)" onblur="change2(this)"/></td>
</tr>

<tr>
<td>验证码：</td>
<td><input type="text" id="txtVCode" style="width:230px" runat="server" class="input1" onfocus="change(this)" onblur="change2(this)"/></td>
</tr>

<tr>
<td colspan="2"><image id="imgVcode" src="ValidateCode.ashx"></image>&nbsp;&nbsp;&nbsp;&nbsp;<a style="color:red" href="javascript:void(0)" onclick="Vcode()">看不清,换一张</a></td>
</tr>

<tr>
<td colspan="2">
    <asp:LinkButton ID="lbtnPublish" runat="server" ForeColor="#FF9900" 
        onclick="lbtnPublish_Click"><font size="4px">发布</font></asp:LinkButton>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <a style="color:#FF9900" href="javascript:void(0)" onclick="PubClear()"><font size="4px">重写</font></a>
</td>
</tr>
</table>
</center>

</asp:Content>

